import Vue from "vue";
import VueRouter from "vue-router";
import HomePage from "@/views/HomePage";
import ClassiFication from "@/views/ClassiFication";
import TheOrder from "@/views/TheOrder";
import MyMy from "@/views/MyMy";
import MyLike from "@/views/MyLike";
import MyCollection from "@/views/MyCollection";
Vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    { path: "/", redirect: "/HomePage" },
    { path: "/HomePage", component: HomePage },
    { path: "/ClassiFication", component: ClassiFication },
    { path: "/TheOrder", component: TheOrder },
    {
      path: "/MyMy",
      component: MyMy,
      children: [
        { path: "/MyLike", component: MyLike },
        { path: "/MyCollection", component: MyCollection },
      ],
    },
  ],
});
export default router;
